package ru.javadevelop.homefinans.svc;

import com.neurospeech.wsclient.*;
import org.w3c.dom.*;

public class HomeFinansService_GetCategories extends WSObject
{
	
	private String _username;
	public String getusername(){
		return _username;
	}
	public void setusername(String value){
		_username = value;
	}
	
	public static HomeFinansService_GetCategories loadFrom(Element root) throws Exception
	{
		if(WSHelper.isNull(root)){
			return null;
		}
		HomeFinansService_GetCategories result = new HomeFinansService_GetCategories();
		result.load(root);
		return result;
	}
	
	
	protected void load(Element root) throws Exception
	{
		this.setusername(WSHelper.getString(root,"username",false));
	}
	
	
	
	public Element toXMLElement(WSHelper ws, Element root)
	{
		Element e = ws.createElement("ns6:GetCategories");
		fillXML(ws,e);
		return e;
	}
	
	public void fillXML(WSHelper ws,Element e)
	{
		ws.addChild(e,"ns6:username",String.valueOf(_username),false);
	}
	
}
